/**
 * 
 */
package org.cuatrovientos.calculator;

import java.util.Random;



/**
 * @author david_berrade
 *
 */
public class Calculator {
	
	public static String randomLetter( ) {
		String [] letters = {"a", "e","i","o","u"};
		int randomPosition = 0;
		String result ="";
		Random random = new Random();
		
		randomPosition = random.nextInt(letters.length);
		result=letters[randomPosition];
		
		
		return result;
}

	
	
	/**
	 * adds 2 numbers and return the result
	 * @param x
	 * @param y
	 * @return
	 */
public static int add (int x, int y){
		int result=0;
		
		result=x+y;
		return result;
}
/**
 *  Substract 2 numbers and return the result
 * @param x
 * @param y
 * @return
 */

public static int sub (int x, int y){
		int result=0;
		
		result=x-y;
		return  result;
		
				
}
/**
 * Division between numbers and return result
 * @param x
 * @param y
 * @return
 */

public static int div (int x, int y){
		int result=0;
		
		result=x/y;
		return result;
		
}

/**
 *  Multiplies 2 numbers and return result
 * @param x
 * @param y
 * @return
 */
public static int mul (int x, int y){
	
		int result=0;
		
		result=x*y;
		return result;
}

		
		
	
	
	

		
	
	
	
	
	
	
/**
 * A calculator based on  methods
 * @param args
 */
	
	
	
	public static void main(String[] args) {
		
		int result=0;
		int x=5;
		int y=12;
		
		result= Calculator.add(x, y);
		System.out.println(result);
		
		result= Calculator.div(x, y);
		System.out.println(result);
		
		result= Calculator.mul(x, y);
		System.out.println(result);
		
		result= Calculator.sub(x, y);
		System.out.println(result);
		
		for (int i=0;i<100;i++) {
			
			System.out.println(Calculator.randomLetter ());
			
		}
		

		
		
		

	}

}
